[MUSIC] In the previous video, you learned about
selector editor and its properties. By the end of this video, you will be
able to understand Dynamic Selectors. So let's get started. A Dynamic Selector finds the address
of a UI element dynamically and identifies the attributes of
the element across Windows. [MUSIC] A Dynamic Selector uses a variable or
an argument as a property for the attribute of the target tag. This allows the selector to easily
identify a target element based on the value of the variable or argument. The variable or argument can be
changed to interact with a different element without changing
the selector itself. This is best suited situations in
which the target element constantly changes its value. [MUSIC] So let's begin. Open the notepad application,
now open studio and drag and drop a click activity
inside the sequence activity. [MUSIC] Click on the indicate on screen link and
to indicate the file menu of the notepad. [MUSIC] When the workflow is run, the file menu
of the notepad is clicked automatically. [MUSIC] Minimize the notepad, click the click
activities hamburger icon and select edit selector
from the context menu. [MUSIC] In the selector editor Window, navigate to the last line
here you can see a control tag with the attribute,
name and value, file. Now, let's make this a Dynamic Selector,
right-click on the file value and select use variable from the context menu. Please note that only string and integer values are supported while adding
variables or arguments in the selector. Notice two fields coming up, which lets you create the variable
name and set its default value. In the set name Field, create a variable named as menu item and press enter. Delete the value file from
the name attribute textbox. [MUSIC] Now, click the OK button to close
the selector editor Window. Now, navigate to the variables panel,
in the default value section of the menu item variable
enter format and double quotes. [MUSIC] Now, run the workflow. [MUSIC] You will see that the format menu
is clicked now in place of file. This is how you can create
Dynamic Selectors with values. I would encourage you to
try this on your own. The next item of this lesson is
a reading material about wildcards and their use to make selectors more robust. [MUSIC] Thank you for watching. [MUSIC]